//
//  EditIntroTableViewCell.m
//  one_mile_01
//
//  Created by 王雅蓉 on 15/8/27.
//  Copyright (c) 2015年 王雅蓉. All rights reserved.
//

#import "EditIntroTableViewCell.h"

@interface EditIntroTableViewCell ()
{
    UILabel *introL;
}

@end

@implementation EditIntroTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self createSubviews];
    }
    
    return self;
}

-(void)createSubviews
{
    introL = [[UILabel alloc] initWithFrame:CGRectMake(16 * FITRATE, 77 * FITRATE / 2.0 - 20 * FITRATE, 80 * FITRATE, 40 * FITRATE)];
    //introL.backgroundColor = [UIColor yellowColor];
    introL.text = @"个人简介";
    introL.font = [UIFont systemFontOfSize:16.0f * FITRATE];
    introL.textColor = [UIColor blackColor];
    [self.contentView addSubview:introL];
    
    UIImageView *pushIV = [[UIImageView alloc] initWithFrame:CGRectMake(WIDTH - 16 * FITRATE - 15 * FITRATE, 77 * FITRATE / 2.0 - 15 * FITRATE / 2.0, 15 * FITRATE, 15 * FITRATE)];
    pushIV.image = [UIImage imageNamed:@"manage_pushview@2x.png"];
    [self.contentView addSubview:pushIV];
    
    self.introInfoL = [[UILabel alloc] initWithFrame:CGRectMake(pushIV.frame.origin.x - 10 * FITRATE - 200 * FITRATE, 10 * FITRATE, 200 * FITRATE, 77 * FITRATE - 10 * FITRATE * 2)];
    self.introInfoL.textColor = RGBACOLOR(82, 82, 82, 1.0);
    self.introInfoL.text = @"这个人很懒，什么也没有留下";
    self.introInfoL.numberOfLines = 0;
    self.introInfoL.textAlignment = NSTextAlignmentRight;
    self.introInfoL.font = [UIFont systemFontOfSize:14.0f * FITRATE];
    [self.contentView addSubview:_introInfoL];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
